package org.lex.dbq.model.bo;

import org.lex.dbq.util.DriverLoader;
import org.lex.lang.AggregateException;

public class DriverConfig extends CommonObject {
	private String className = "";
	private String website = "";
	private Classpath classpath = null;

	private boolean loaded = false;

	public void load() throws AggregateException {
		if (false == loaded) {
			new DriverLoader().loadDriver(this);
			loaded = true;
		}
	}

	public String getWebsite() {
		return website;
	}

	public void setWebsite(String website) {
		this.website = website;
	}

	public Classpath getClasspath() {
		if (null == classpath) {
			classpath = new Classpath();
		}
		return classpath;
	}

	public void setClasspath(Classpath classpath) {
		this.classpath = classpath;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}
}
